<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Objective-C API Reference for iOS/macOS: JCAccount类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Objective-C API Reference for iOS/macOS
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="#pub-static-methods">类方法</a> &#124;
<a href="interface_j_c_account-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCAccount类 参考<div class="ingroups"><a class="el" href="group___xE8_xB4_xA6_xE5_x8F_xB7_xE6_xA8_xA1_xE5_x9D_x97.html">账号模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="_j_c_account_8h_source.html">JCAccount.h</a>&gt;</code></p>
<div class="dynheader">
类 JCAccount 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_j_c_account.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:aec0e112ba7baa03dd867d5f92ad12c85"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_account.html#aec0e112ba7baa03dd867d5f92ad12c85">queryUserStatus:</a></td></tr>
<tr class="separator:aec0e112ba7baa03dd867d5f92ad12c85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec4ea63f41f105074c1b73aacf721a73"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_account.html#aec4ea63f41f105074c1b73aacf721a73">queryServerUid:</a></td></tr>
<tr class="separator:aec4ea63f41f105074c1b73aacf721a73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad13684e2e2a2d4cbb5792a1f3b42a2d9"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_account.html#ad13684e2e2a2d4cbb5792a1f3b42a2d9">queryUserId:</a></td></tr>
<tr class="separator:ad13684e2e2a2d4cbb5792a1f3b42a2d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa49db7cf1881f5cad36426e8be3af9c1"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_account.html#aa49db7cf1881f5cad36426e8be3af9c1">refreshContacts:</a></td></tr>
<tr class="separator:aa49db7cf1881f5cad36426e8be3af9c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac05c24d2e855e935273eac7911b411b9"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_account.html#ac05c24d2e855e935273eac7911b411b9">dealContact:</a></td></tr>
<tr class="separator:ac05c24d2e855e935273eac7911b411b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a504f22174b3a914a88403229522e5dc1"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_account.html#a504f22174b3a914a88403229522e5dc1">setDnd:dnd:</a></td></tr>
<tr class="separator:a504f22174b3a914a88403229522e5dc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6094d7f4bc7d4d51c398285241db7eff"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_account.html#a6094d7f4bc7d4d51c398285241db7eff">addCallback:</a></td></tr>
<tr class="separator:a6094d7f4bc7d4d51c398285241db7eff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13bf7e3254db60a0ca168a442253f8af"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_account.html#a13bf7e3254db60a0ca168a442253f8af">removeCallback:</a></td></tr>
<tr class="separator:a13bf7e3254db60a0ca168a442253f8af"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
类方法</h2></td></tr>
<tr class="memitem:a0e03454598a73cf1f05f0b97a2630b2b"><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_j_c_account.html">JCAccount</a> *__nullable)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_j_c_account.html#a0e03454598a73cf1f05f0b97a2630b2b">create:</a></td></tr>
<tr class="separator:a0e03454598a73cf1f05f0b97a2630b2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdfece0c7f4aa39fdc3b3d178f0a29c9"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_j_c_account.html#afdfece0c7f4aa39fdc3b3d178f0a29c9">destroy</a></td></tr>
<tr class="separator:afdfece0c7f4aa39fdc3b3d178f0a29c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>账号类 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="a6094d7f4bc7d4d51c398285241db7eff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6094d7f4bc7d4d51c398285241db7eff">&#9670;&nbsp;</a></span>addCallback:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) addCallback: </td>
          <td></td>
          <td class="paramtype">(id&lt; <a class="el" href="protocol_j_c_account_callback-p.html">JCAccountCallback</a> &gt; __nonnull)&#160;</td>
          <td class="paramname"><em>callback</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>添加回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">callback</td><td><a class="el" href="protocol_j_c_account_callback-p.html">JCAccountCallback</a> 接口对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0e03454598a73cf1f05f0b97a2630b2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e03454598a73cf1f05f0b97a2630b2b">&#9670;&nbsp;</a></span>create:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="interface_j_c_account.html">JCAccount</a>* __nullable) create: </td>
          <td></td>
          <td class="paramtype">(id&lt; <a class="el" href="protocol_j_c_account_callback-p.html">JCAccountCallback</a> &gt; __nonnull)&#160;</td>
          <td class="paramname"><em>callback</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建 <a class="el" href="interface_j_c_account.html">JCAccount</a> 对象</p>
<p><a class="el" href="interface_j_c_account.html">JCAccount</a> 的所有接口函数，如无特殊说明，都建议在主线程调用</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">callback</td><td><a class="el" href="protocol_j_c_account_callback-p.html">JCAccountCallback</a> 回调接口，用于回调相关通知 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="interface_j_c_account.html">JCAccount</a> 对象 </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">JCCallCallback 传空会出现调用失败</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac05c24d2e855e935273eac7911b411b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac05c24d2e855e935273eac7911b411b9">&#9670;&nbsp;</a></span>dealContact:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) dealContact: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_account_contact.html">JCAccountContact</a> *__nonnull)&#160;</td>
          <td class="paramname"><em>contact</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>操作联系人</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">contact</td><td>联系人对象 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_account_callback-p.html#a6ce3db1f8a3209301cffc52006493718">onDealContact</a> 通知</li>
<li>-1：调用失败，当方法入参 <a class="el" href="interface_j_c_account_contact.html">JCAccountContact</a> 传空时出现调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="afdfece0c7f4aa39fdc3b3d178f0a29c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdfece0c7f4aa39fdc3b3d178f0a29c9">&#9670;&nbsp;</a></span>destroy</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) destroy </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>销毁 <a class="el" href="interface_j_c_account.html">JCAccount</a> 对象 </p><dl class="section note"><dt>注解</dt><dd>此方法为异步调用，所以在调用此方法后不能马上调用 <a class="el" href="interface_j_c_account.html#a0e03454598a73cf1f05f0b97a2630b2b">create</a> 方法重新创建 <a class="el" href="interface_j_c_account.html">JCAccount</a> 对象 </dd></dl>

</div>
</div>
<a id="aec4ea63f41f105074c1b73aacf721a73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec4ea63f41f105074c1b73aacf721a73">&#9670;&nbsp;</a></span>queryServerUid:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) queryServerUid: </td>
          <td></td>
          <td class="paramtype">(NSArray&lt; NSString * &gt; *__nonnull)&#160;</td>
          <td class="paramname"><em>userIdArray</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>查询账号在服务器上的 uid</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">userIdArray</td><td>查询的账号列表 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_account_callback-p.html#a736fcbd0388c57bcea5f34da736481d9">onQueryServerUidResult</a> 通知</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ad13684e2e2a2d4cbb5792a1f3b42a2d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad13684e2e2a2d4cbb5792a1f3b42a2d9">&#9670;&nbsp;</a></span>queryUserId:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) queryUserId: </td>
          <td></td>
          <td class="paramtype">(NSArray&lt; NSString * &gt; *__nonnull)&#160;</td>
          <td class="paramname"><em>serverUidArray</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>查询账号 userId</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUidArray</td><td>查询的账号列表 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_account_callback-p.html#aacfe3ae5f27159ca032f76633c3b4420">onQueryUserIdResult</a> 通知</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="aec0e112ba7baa03dd867d5f92ad12c85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec0e112ba7baa03dd867d5f92ad12c85">&#9670;&nbsp;</a></span>queryUserStatus:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) queryUserStatus: </td>
          <td></td>
          <td class="paramtype">(NSArray&lt; NSString * &gt; *__nonnull)&#160;</td>
          <td class="paramname"><em>userIdArray</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>查询账号状态</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">userIdArray</td><td>查询的账号列表 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_account_callback-p.html#aaf37440dc773151f27983be6816fab1f">onQueryUserStatusResult</a> 通知</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="aa49db7cf1881f5cad36426e8be3af9c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa49db7cf1881f5cad36426e8be3af9c1">&#9670;&nbsp;</a></span>refreshContacts:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) refreshContacts: </td>
          <td></td>
          <td class="paramtype">(long)&#160;</td>
          <td class="paramname"><em>lastQueryTime</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>查询所有的联系人（支持增量）</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">lastQueryTime</td><td>上次更新时间戳 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_account_callback-p.html#a6da9e43480c4e1be1fd1b7a8f1eb131f">onRefreshContacts</a> 通知</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a13bf7e3254db60a0ca168a442253f8af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13bf7e3254db60a0ca168a442253f8af">&#9670;&nbsp;</a></span>removeCallback:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) removeCallback: </td>
          <td></td>
          <td class="paramtype">(id&lt; <a class="el" href="protocol_j_c_account_callback-p.html">JCAccountCallback</a> &gt; __nonnull)&#160;</td>
          <td class="paramname"><em>callback</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>删除回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">callback</td><td><a class="el" href="protocol_j_c_account_callback-p.html">JCAccountCallback</a> 接口对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a504f22174b3a914a88403229522e5dc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a504f22174b3a914a88403229522e5dc1">&#9670;&nbsp;</a></span>setDnd:dnd:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) setDnd: </td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>serverUid</em></td>
        </tr>
        <tr>
          <td class="paramkey">dnd:</td>
          <td></td>
          <td class="paramtype">(bool)&#160;</td>
          <td class="paramname"><em>dnd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置免打扰</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>服务器自己的 uid </td></tr>
    <tr><td class="paramname">dnd</td><td>是否免打扰<ul>
<li>true：设置免打扰，</li>
<li>false：取消免打扰 </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：操作id，结果通过 <a class="el" href="protocol_j_c_account_callback-p.html#a97029797275298a3fa223d3d23a1556d">onSetContactDnd</a> 通知</li>
<li>-1：调用失败，不会收到回调 </li>
</ul>
</dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>JCSDKOC/JCSDKOC/JCAccount/<a class="el" href="_j_c_account_8h_source.html">JCAccount.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
